import * as vscode from 'vscode';
import { DifyService } from './difyService';

export class GitScmEnhancer {
    private difyService: DifyService;
    private disposables: vscode.Disposable[] = [];

    constructor(difyService: DifyService) {
        this.difyService = difyService;
    }

    public initialize() {
        // 注册事件监听器
        this.disposables.push(
            vscode.window.onDidChangeActiveTextEditor(() => {
                // 在这里添加编辑器变化时的逻辑
            }),
            vscode.workspace.onDidChangeConfiguration((e: vscode.ConfigurationChangeEvent) => {
                if (e.affectsConfiguration('difyCodeReview')) {
                    // 配置变化时的处理逻辑
                }
            })
        );
    }

    public dispose() {
        this.disposables.forEach(d => d.dispose());
    }
} 